package com.bonc.modules.rpt.controller;

import com.bonc.common.utils.Result;
import com.bonc.modules.rpt.service.impl.CmpSatisDeptAllServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author jinlong
 * @date 2021/8/4
 */
@Controller
@RequestMapping("/rpt/cmpSatisDept")
public class CmpSatisDeptController {


    @Autowired
    private CmpSatisDeptAllServiceImpl cmpSatisDeptAll;


    @GetMapping("/getDept")
    @ResponseBody
    public Result getDept() {
        List<String> dept = cmpSatisDeptAll.getDept();
        return Result.ok().put("list", dept);
    }


}
